<?php
/* @var $this ImageController */
/* @var $model Image */

$this->breadcrumbs=array(
	'Images'=>array('index'),
	$model->id,
);

$this->menu=array(
		array('label'=>'Sommaire', 'url'=>array('/')),
		array('label'=>'Modifier', 'url'=>array('update', 'id'=>$model->id)),
		array('label'=>'Supprimer', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
		array('label'=>'Retour', 'url'=>array('/image/admin')),
);
?>

<h1>Image du lieu : <?php echo $model->idLocation->name ; ?></h1>

<div id="sidebar">
<?php
	$this->beginWidget('zii.widgets.CPortlet');
	$this->widget('zii.widgets.CMenu', array(
		'items'=>$this->menu,
		'htmlOptions'=>array('class'=>'operations'),
	));
	$this->endWidget();
?>
</div><!-- sidebar -->

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'type',
	),

)); ?>

<div class="location_image_detail">
<?php echo CHtml::image(Yii::app()->baseUrl.$model->path); ?>
</div>
